/******************************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Ltd.                       */
/*                                                                            */
/*  NAME      = fix_comm.h                                                    */
/*  NOTE      =                                                               */
/*  DATE      = 2015/10/18 by zhengxd                                         */
/******************************************************************************/
#ifndef __FIX_BASE_TYPE_H_
#define __FIX_BASE_TYPE_H_

#include "frmem.h"
#include "frstr.h"
#include "frcomm.h"
#include "frlist.h"
#include "frhash2.h"
#include "frlog.h"
#include "iconv2utf8.h"
#include "frsutl.h"
#include "frhex_dump.h"

#include "conntrack.h"
#include "module.h"
#include "frct_comm.h"
#include "frreport_comm.h"
#include "frbyte_buffer.h"
#include "frexp2_comm.h"

#define CUPS_LEN_LEN                         4  //报文长度位的长度
#define CUPS_TPDU_LEN                        46 //报文长TPDU度位
#define CUPS_MSG_TP_LEN                      4  //报文类型长度
#define CUPS_MAP_MAX_LEN                     16 //位图最大长度
#define CUPS_MAIN_MAP_LEN                    8  //主位图长度
#define CUPS_SUB_MAP_LEN                     8  //次位图长度
#define CUPS_TRANS_INFO_LEN                  8  //交易信息长度
#define CUPS_ID_LEN                          11 //ID长度
#define CUPS_REJ_CODE_LEN                    5  //reject code长度

#define CUPS_0100_REQ                        100
#define CUPS_0110_RESP                       110
#define CUPS_0200_REQ                        200
#define CUPS_0210_RESP                       210
#define CUPS_0220_REQ                        220
#define CUPS_0230_RESP                       230
#define CUPS_0420_REQ                        420
#define CUPS_0430_RESP                       430
#define CUPS_0620_REQ                        620
#define CUPS_0630_RESP                       630
#define CUPS_0800_REQ                        800
#define CUPS_0810_RESP                       810
#define CUPS_0820_REQ                        820
#define CUPS_0830_RESP                       830
#define CUPS_0320_REQ                        320
#define CUPS_0330_RESP                       330
#define CUPS_0400_REQ                        400
#define CUPS_0410_RESP                       410

#define CUPS_REPORT_KEY_CONN_TYPE_CODE                  APM_REPORT_KEY_TRANS ".type_code"
#define CUPS_REPORT_KEY_CONN_TYPE_NAME                  APM_REPORT_KEY_TRANS ".type_name"
#define CUPS_REPORT_KEY_CONN_CHANNEL                    APM_REPORT_KEY_TRANS ".channel"

#endif
